/*
#####################################################################
####################	   T R I B U I T 		#####################
#####################################################################

Copyright (C) 2010  Christoph Schnack, Berlin (Germany)

This file is part of Tribuit.

    Tribuit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Tribuit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Tribuit.  If not, see <http://www.gnu.org/licenses/>.


########################################################################
*/
package Wordcheck;

import java.awt.Component;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class WordcheckLabelPanel extends JPanel{
	public WordcheckLabelPanel(String string, Component c){
		super();
		this.setLayout(new GridBagLayout());
		GridBagConstraints lpGbc = new GridBagConstraints();
		lpGbc.insets = new Insets(0,0,0,0);
		lpGbc.anchor = GridBagConstraints.WEST;
		lpGbc.fill = GridBagConstraints.BOTH;
		lpGbc.weightx=1;
		JLabel label = new JLabel(string,JLabel.LEFT);
		label.setFont(new Font(Font.SERIF,Font.BOLD,16));
		this.add(label,lpGbc);
		lpGbc.weighty = 3;
		lpGbc.gridy=1;
		this.add(c, lpGbc);
		this.setOpaque(false);
	}
}